﻿namespace QFramework
{
    /// <summary>
    /// 物品栏 -- 一个格子放一个物品
    /// </summary>
    public class Slot
    {
        public IItem Item;
        public int Count;
        
        // 刷新事件
        public EasyEvent Changed = new EasyEvent();
        
        public SlotGroup Group { get; private set; }

        public Slot(IItem item, int count, SlotGroup group)
        {
            Item = item;
            Count = count;
            Group = group;
        }
    }
}